import request from '/@/utils/request';

// 查询物业接待的图片列表
export function listImg(query?: Object) {
  return request({
    url: '/system/img/list',
    method: 'get',
    params: query
  })
}

// 查询物业接待的图片详细
export function getImg(id?: number) {
  return request({
    url: '/system/img/' + id,
    method: 'get'
  })
}

// 新增物业接待的图片
export function addImg(data?: Object) {
  return request({
    url: '/system/img',
    method: 'post',
    data: data
  })
}

// 修改物业接待的图片
export function updateImg(data?: Object) {
  return request({
    url: '/system/img',
    method: 'put',
    data: data
  })
}

// 删除物业接待的图片
export function delImg(id?: number) {
  return request({
    url: '/system/img/' + id,
    method: 'delete'
  })
}

// 导出物业接待的图片
export function exportImg(query?: Object) {
  return request({
    url: '/system/img/export',
    method: 'get',
    params: query
  })
}
